﻿using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// 交互信息管理器接口
/// </summary>
public interface ISessionManager {

    /// <summary>
    /// 获取存储值
    /// </summary>
    /// <param name="key"></param>
    /// <returns></returns>
    string GetValue(string key);

    /// <summary>
    /// 设置存储值
    /// </summary>
    /// <param name="key"></param>
    /// <param name="value"></param>
    void SetValue(string key, string value);

    /// <summary>
    /// 创建新的交互标识
    /// </summary>
    /// <returns></returns>
    string CreateSessionId();

    /// <summary>
    /// 获取交互标识是否可用
    /// </summary>
    bool Enable { get; }

    /// <summary>
    /// 获取或设置交互标识
    /// </summary>
    /// <returns></returns>
    string GetSessionId();

}
